package com.xxp.controller;

import com.xxp.common.Result;
import com.xxp.service.NewFuzhouService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/newFz")
@CrossOrigin
public class NewFuzhouController {
    @Autowired
    private NewFuzhouService newFuzhouService;

    @GetMapping("/all")
    public Result selectAll(){
       return Result.success(newFuzhouService.selectAll());
    }

    @GetMapping("/{id}")
    public Result selectById(@PathVariable Integer id){
        return Result.success(newFuzhouService.selectById(id));
    }
}
